package delete;

import org.junit.Test;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import cn.tedu.store.service.AddressService;

public class deleteAddress {
	@Test
	public void deleteAddressById(){
		AbstractApplicationContext ac=new ClassPathXmlApplicationContext("spring-service.xml","spring-dao.xml");
		AddressService addressService=ac.getBean("addressService",AddressService.class);
		addressService.deleteAddress(9, 5);
	}
}
